package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工资对象 payroll
 * 
 * @author ruoyi
 * @date 2022-11-13
 */
@TableName("payroll")
public class Payroll extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 工号 */
    @Excel(name = "工号")
    private Long userId;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String userName;

    /** 基本工资 */
    @Excel(name = "基本工资")
    private BigDecimal baseSalary;

    /** 岗位工资 */
    @Excel(name = "岗位工资")
    private BigDecimal postSalary;

    /** 绩效工资 */
    @Excel(name = "绩效工资")
    private BigDecimal meritSalary;

    /** 生活津贴 */
    @Excel(name = "生活津贴")
    private BigDecimal subsistenceAllowance;

    /** 加班工资 */
    @Excel(name = "加班工资")
    private BigDecimal overtimeSalary;

    /** 计件工资 */
    @Excel(name = "计件工资")
    private BigDecimal pieceSalary;

    /** 总工资 */
    @Excel(name = "总工资")
    private BigDecimal totalSalary;

    /** 实发工资 */
    @Excel(name = "实发工资")
    private BigDecimal netSalary;

    /** 绩效表id */
    private Long achievementsId;

    /** 月份 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "月份", width = 30, dateFormat = "yyyy-MM")
    private Date salaryDate;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 备注 */
    private String remark;

    @Override
    public String getCreateBy() {
        return createBy;
    }

    @Override
    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String getUpdateBy() {
        return updateBy;
    }

    @Override
    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setBaseSalary(BigDecimal baseSalary) 
    {
        this.baseSalary = baseSalary;
    }

    public BigDecimal getBaseSalary() 
    {
        return baseSalary;
    }
    public void setPostSalary(BigDecimal postSalary) 
    {
        this.postSalary = postSalary;
    }

    public BigDecimal getPostSalary() 
    {
        return postSalary;
    }
    public void setMeritSalary(BigDecimal meritSalary) 
    {
        this.meritSalary = meritSalary;
    }

    public BigDecimal getMeritSalary() 
    {
        return meritSalary;
    }
    public void setSubsistenceAllowance(BigDecimal subsistenceAllowance) 
    {
        this.subsistenceAllowance = subsistenceAllowance;
    }

    public BigDecimal getSubsistenceAllowance() 
    {
        return subsistenceAllowance;
    }
    public void setOvertimeSalary(BigDecimal overtimeSalary) 
    {
        this.overtimeSalary = overtimeSalary;
    }

    public BigDecimal getOvertimeSalary() 
    {
        return overtimeSalary;
    }
    public void setTotalSalary(BigDecimal totalSalary) 
    {
        this.totalSalary = totalSalary;
    }

    public BigDecimal getTotalSalary() 
    {
        return totalSalary;
    }
    public void setNetSalary(BigDecimal netSalary) 
    {
        this.netSalary = netSalary;
    }

    public BigDecimal getNetSalary() 
    {
        return netSalary;
    }
    public void setAchievementsId(Long achievementsId) 
    {
        this.achievementsId = achievementsId;
    }

    public Long getAchievementsId() 
    {
        return achievementsId;
    }
    public void setSalaryDate(Date salaryDate) 
    {
        this.salaryDate = salaryDate;
    }

    public Date getSalaryDate() 
    {
        return salaryDate;
    }

    public BigDecimal getPieceSalary() {
        return pieceSalary;
    }

    public void setPieceSalary(BigDecimal pieceSalary) {
        this.pieceSalary = pieceSalary;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("baseSalary", getBaseSalary())
            .append("postSalary", getPostSalary())
            .append("meritSalary", getMeritSalary())
            .append("subsistenceAllowance", getSubsistenceAllowance())
            .append("overtimeSalary", getOvertimeSalary())
            .append("totalSalary", getTotalSalary())
            .append("netSalary", getNetSalary())
            .append("remark", getRemark())
            .append("achievementsId", getAchievementsId())
            .append("salaryDate", getSalaryDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
